home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D GFX
/
3D GFX.iso
/
amiutils
/
m_p
/
photocdaga
/
s
/
photomap
Wrap
AmigaDOS Script File
|
1995-12-30
|
651b
|
36 lines
.key source/a,option1,option2
.bra {
.ket }
;This shell script creates the .map files for jpegAGA
;USAGE: CreateMap file [-b BaseName]
;NOTE: You need a directory JPEGTMP: on your hard disk
; (and enough space on that partition)
FailAt 21
PhotoCDAGA {source} JPEGTMP:temp.ppm -ppm -crop -2 -x
IF ERROR
delete >NIL: JPEGTMP:temp.ppm
echo "Fatal error: could not decode PhotoCD file"
QUIT 20
ENDIF
ppm2aga JPEGTMP:temp.ppm {source}.map -jpegAGA {option1} {option2}
IF ERROR
delete >NIL: JPEGTMP:temp.ppm
delete >NIL: {source}.map
echo "Fatal error: could not create map file."
QUIT 20
ENDIF
delete >NIL: JPEGTMP:temp.ppm